home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 5 / BBS in a Box -Volume V (BBS in a Box) (April 1992).iso / Files / Prog / M / LSC215.cpt / math.h < prev    next >
Encoding:
C/C++ Source or Header  |  1987-12-03  |  1.2 KB  |  50 lines  |  [TEXT/KAHL]

  1. /****************************************************************************
  2.  
  3.     Standard math library header for LightspeedC.
  4.  
  5.     (C) Copyright 1986 THINK Technologies, Inc.  All rights reserved.
  6.  
  7. *****************************************************************************/
  8.  
  9. #ifndef    _math_
  10.  
  11.     #define    _math_                            /* show symbols defined    */
  12.     double    acos(double x);
  13.     double    asin(double x);
  14.     double    atan(double x);
  15.     double    atan2(double y, double x);
  16.     double    ceil(double x);
  17.     double    cos(double x);
  18.     double    cosh(double x);
  19.     double    exp(double x);
  20.     double    fabs(double x);
  21.     double    floor(double x);
  22.     double    fmod(double x, double y);
  23.     double    frexp(double x, int *i);
  24.     long    labs(long l);
  25.     double    ldexp(double x, int n);
  26.     double    log(double x);
  27.     double    log10(double x);
  28.     double    modf(double x, int *i);
  29.     double    pow(double x, double y);
  30.     double    sin(double x);
  31.     double    sinh(double x);
  32.     double    sqrt(double x);
  33.     double    tan(double x);
  34.     double    tanh(double x);
  35.  
  36.     #define    PI        (3.14159265358979323846)
  37.     #define    PI2        (1.57079632679489661923)
  38.     #define    PI4        (0.78539816339744830966)
  39.  
  40.     #define    E        (2.71828182845904523536)
  41.  
  42.     typedef enum{
  43.                     EDOM=33,
  44.                     ERANGE=34
  45.                 };
  46.  
  47. extern    int    errno;    /* actually defined in stdio */
  48.  
  49. #endif
  50.